package com.xixi.core.rpc.fault.tolerant;

import com.xixi.core.rpc.model.RpcResponse;

import java.util.Map;

/**
 * @author: zxh
 * @date: 2024/8/27 16:42
 * @description: 快速失败 - 容错策略（立刻通知外层调用方）
 */
public class FailFastTolerantStrategy implements TolerantStrategy{
	@Override
	public RpcResponse doTolerant(Map<String, Object> context, Exception e) {
		throw new RuntimeException("服务报错", e);
	}
}
